package com.bosssoft.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bosssoft.entity.po.FibVoucherDetailsPO;
import com.bosssoft.entity.vo.FibVoucherDetailsVO;
import com.bosssoft.page.PageResult;
import org.apache.ibatis.annotations.Options;

/**
 * @author Li kexi
 * Created on 2021/8/20.10:12
 */
public interface FibVoucherDetailsService extends IService<FibVoucherDetailsPO> {


    int updateBatch(List<FibVoucherDetailsPO> list);

    int updateBatchSelective(List<FibVoucherDetailsPO> list);

    int batchInsert(List<FibVoucherDetailsPO> list);

    @Options(useGeneratedKeys = true, keyProperty = "voucher_id")
    Long insertOrUpdate(FibVoucherDetailsPO record);

    int insertOrUpdateSelective(FibVoucherDetailsPO record);

    String stamp(FibVoucherDetailsVO fibVoucherDetailsVO);

    FibVoucherDetailsPO selectVoucherById(FibVoucherDetailsVO fibVoucherDetailsVO);

    PageResult<FibVoucherDetailsPO> voucherPage(Integer current, Integer size, FibVoucherDetailsVO fibVoucherDetailsVO);

    FibVoucherDetailsPO selectByBgtIdAndCode(Integer voucherCode, Long bgtId);
}
